package com.easy.west.westclient.api.vodcommen.api;

import com.easy.west.westclient.api.base.bean.ResultBean;
import com.easy.west.westclient.api.vodcommen.bean.CommenList;

import retrofit2.Call;
import retrofit2.http.Field;
import retrofit2.http.FormUrlEncoded;
import retrofit2.http.GET;
import retrofit2.http.POST;

public interface VodCommenService {

    /**
     * 获取点播视频评论
     * @param vid
     * @return
     */
    @POST("vcomments/get")
    @FormUrlEncoded
    Call<CommenList> getVodCommen(@Field("vid") long vid,@Field("num")int num);

    /**
     * 发送评论(直播)
     * @param lid
     * @param ownerId
     * @param access_token
     * @param target_id
     * @param type
     * @param content
     * @return
     */
    @POST("comments/submit")
    @FormUrlEncoded
    Call<Boolean> sendLiveCommen(@Field("lid")long lid,@Field("ownerId")long ownerId,@Field("access_token")String access_token
    ,@Field("targetId")long target_id,@Field("type")int type,@Field("content")String content);

    /***
     * 发送评论(点播)
     * @param lid
     * @param ownerId
     * @param access_token
     * @param target_id
     * @param type
     * @param content
     * @return
     */
    @POST("vcomments/create")
    @FormUrlEncoded
    Call<ResultBean> sendVodCommen(@Field("vid")long lid, @Field("ownerId")long ownerId, @Field("access_token")String access_token
            , @Field("targetId")long target_id, @Field("type")int type, @Field("content")String content);
}
